package org.easy.eao.spring.hibernate;

import java.util.List;

import org.easy.eao.spring.hibernate.model.Exam;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class TargetBean extends HibernateDaoSupport {
	
	@SuppressWarnings("unchecked")
	public List<Exam> method(String student) {
		return (List<Exam>) getHibernateTemplate().find("from Exam e where e.student = ?", student);
	}

}
